﻿using MediatR;
using Infrastructure;
using Domain;
using System.IdentityModel.Tokens.Jwt;
using Microsoft.IdentityModel.Tokens;
using System.Security.Claims;
using System.Text;
using Microsoft.AspNetCore.Authentication.JwtBearer;

namespace RabbitTeacebillty.API.Read.Application.Command
{
    /// <summary>
    /// 用户登录请求命令（DTO）
    /// 用于接收前端传入的登录信息，字段与Domain.User保持一致
    /// </summary>
    public class UserQueryCommand : IRequest<ApiResult<User>>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;

        /// <summary>
        /// 验证码对应的guid
        /// </summary>
        public string Guid { get; set; } = string.Empty;

        /// <summary>
        /// 用户输入的验证码
        /// </summary>
        public string Captcha { get; set; } = string.Empty;
    }

   
 
}
